import { Transform } from 'class-transformer';
import { IsDefined, IsUUID } from 'class-validator';

export class DeleteDto {
  @Transform(({ value }) => {
    return String(value).split(',');
  })
  @IsUUID(undefined, {
    each: true,
    message: 'ID格式错误',
  })
  ids: string[];
}
